Skip to content

[codex] Clean up slack-post install docs and env vars#3

Merged
coderberry merged 1 commit into
mainfrom
codex/homebrew-slack-post-cleanup
May 13, 2026
Merged

[codex] Clean up slack-post install docs and env vars#3
coderberry merged 1 commit into
mainfrom
codex/homebrew-slack-post-cleanup

Conversation

@coderberry
Copy link
Copy Markdown
Contributor

Summary

  • Add a Homebrew-first install section for released tools, including brew install berrydev-ai/tap/slack-post.
  • Refresh the top-level README with clearer agent/tool positioning and direct links to the slack-post command docs and env template.
  • Move slack-post configuration from the old SLACK_E2E_* names to the SLACK_POST_* namespace in code, tests, docs, and .env.example.

Why

  • slack-post now has a Homebrew distribution path, so the main README should point users to the tap while still distinguishing released binaries from current source docs.
  • The old SLACK_E2E_* namespace was tied to the original test harness wording; SLACK_POST_* better matches the standalone CLI contract.

Impact

  • Operators configuring slack-post from source docs should use SLACK_POST_BOT_TOKEN, SLACK_POST_TARGET_CHANNEL, SLACK_POST_TARGET_BOT_MEMBER_ID, and optional SLACK_POST_<TARGET>_BOT_MEMBER_ID values.
  • Homebrew users install the latest released binary; unreleased source changes still require a source build.

Test Plan

  • git diff --check
  • env GOCACHE=/private/tmp/agent-cli-tools-go-cache go test ./...
  • env GOCACHE=/private/tmp/agent-cli-tools-go-cache make build
  • rg --hidden -n "SLACK_E2E" . returned no matches

@coderberry coderberry marked this pull request as ready for review May 13, 2026 21:37
Copilot AI review requested due to automatic review settings May 13, 2026 21:37
@coderberry coderberry merged commit e32ade7 into main May 13, 2026
3 checks passed
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the slack-post tool’s installation/configuration documentation and renames its environment variable namespace from SLACK_E2E_* to SLACK_POST_* across code, tests, and docs, aligning the CLI contract with its standalone usage and Homebrew distribution.

Changes:

  • Add a Homebrew-first install path and improve top-level README links to slack-post docs and .env.example.
  • Rename all slack-post environment variables from SLACK_E2E_* to SLACK_POST_* in CLI code and user-facing error/help text.
  • Update tests and command documentation/templates to match the new env var names.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
README.md Adds Homebrew install guidance and clearer links to per-tool docs/env templates.
internal/cli/slackpost/command.go Switches env var lookups/help/error strings from SLACK_E2E_* to SLACK_POST_*.
internal/cli/slackpost/command_test.go Updates test env setup and assertions to use SLACK_POST_*.
cmd/slack-post/README.md Refreshes usage/docs tables to reference SLACK_POST_* variables.
cmd/slack-post/.env.example Renames the example configuration keys to SLACK_POST_*.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants